<div id="ContentGroup">
    <div class="count-header">
        <a>新闻用户组添加</a>
    </div>
    <div class="count-content-group">
        <div class="count-content">
            <form  id="XWYHZ_Update" data-role="form" data-event="finish" data-type="post" data-url="<{'XWYHZ_Update_Action'|U}>">
    <input type="hidden" id="XWYHZ_BH_ORA"  name="XWYHZ_BH_ORA" value="<{$Model->XWYHZ_BH|security_encript}>" />
                <div class="count-content-title">新闻用户组</div>
                <div class="count-content-type"><{*此处添加全局注释*}></div>
                <div class="form-list-item">
                    <label class="form-list-item-label">新闻栏目</label>
                    <{XWLM::create($Model->XWLM_BH)->XWLM_MC}>
                    <input type="hidden" name="XWLM_BH" value="<{$Model->XWLM_BH}>">
                    <{*<{$xwlm= XWLM::query()}>*}>
                    <{*<{'XWLM_BH'|html_dropdownlist:$xwlm.DataList:$Model->XWLM_BH:'XWLM_BH':'XWLM_MC'}>*}>
                    <{*<p class="form-list-item-tip"></p>*}>
                </div>
                <div class="form-list-item">
                    <label class="form-list-item-label">用户组信息</label>
                    <{*<{YHZXX::create($Model->YHZXX_BH)->YHZXX_MC}>*}>
                    <{*<input type="hidden" name="YHZXX_BH" value="<{$Model->YHZXX_BH}>">*}>
                    <{$yhzxx= YHZXX::query()}>
                    <{'YHZXX_BH'|html_dropdownlist:$yhzxx.DataList:$Model->YHZXX_BH:'YHZXX_BH':'YHZXX_MC'}>
                    <p class="form-list-item-tip"></p>
                </div>
            </form>     
            <div class="form-operation">
                <span class="button" id="XWYHZ_Update-Submit">提交</span>
                <span class="button" data-role="back">返回</span>
            </div>
        </div>
    </div>
</div>
<script>
    $(function () {
        $("#ContentGroup").formset(0);//开启页面标签页
        //$("#XWYHZ_Insert").vtip();//开启鼠标提示.
        
        $("#XWYHZ_Update").validate({
            rules:{
                "XWYHZ_BH":{
                    "maxbytelength":50 ,
                    "required":true 
                }, 
                "XWLM_BH":{
                    "maxbytelength":50 ,
                    "required":true 
                }, 
                "YHZXX_BH":{
                    "maxbytelength":50 ,
                    "required":true 
                }, 
                "example":{} //可继续追加jquery validate客户端验证条件
            },
            "errorClass": "form-list-item-warn",
            //errorPlacement: function (error, element) {element.attr("data-tips", error.text());},//关闭默认提示，使用鼠标提示框时使用
            submitHandler: function () {
                $("#XWYHZ_Update").trigger("finish");
            }
        });
    
        $("#XWYHZ_Update-Submit").click(function () {
            $("#XWYHZ_Update").submit();
        });
    });
</script>

